<template>
  <div class="loading">
    <div class="loading-icon"></div>
    <span class="loading-text">{{loadingText}}</span>
  </div>
</template>

<script type="text/ecmascript-6">
  export default {
    props: {
      loadingText: {
        type: String,
        default: '加载中...'
      }
    }
  }
</script>

<style lang="scss" rel="stylesheet/sass">
  .loading {
    .loading-icon {
      display: inline-block;
      width: 20px;
      height: 20px;
      margin-right: 6px;
      background: url('../../assets/img/common/loading.gif') no-repeat;
      background-size: 100% 100%;
    }
    .loading-text {
      display: inline-block;
      padding-top: 5px;
      vertical-align: top;
      font-size: 12px;
      font-weight: 400;
      line-height: 1;
      color: #666;
    }
  }
</style>
